package com.taobao.txc.a.b;

import com.taobao.txc.common.LoggerWrap;
import com.taobao.txc.common.config.m;
import java.util.List;

final class h
  implements m
{
  public void a(String paramString)
  {
    g.i().info(String.format("weight set to: %s", new Object[] { paramString }));
    g.c = paramString;
    g.j().clear();
    if (g.c != null)
    {
      String[] arrayOfString1 = g.c.split(";");
      if ((arrayOfString1 == null) || (arrayOfString1.length == 0)) {
        return;
      }
      for (String str1 : arrayOfString1)
      {
        int k = str1.indexOf(",");
        if (k > 0) {
          try
          {
            String str2 = str1.substring(0, k);
            int m = Integer.parseInt(str1.substring(k + 1));
            g.j().add(new o(m, m, str2));
          }
          catch (Exception localException)
          {
            g.i().error("", "weight rule parse error. rule:" + str1);
          }
        }
      }
    }
    g.e();
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.a.b.h
 * JD-Core Version:    0.7.0.1
 */